using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;

namespace MTRC.ODMS.Web.SOM.Popup
{
    /// <summary>
    /// Author:SQB
    /// </summary>
    public partial class ShowDetails : BasePage_SOM 
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            this.btnCancel.Attributes.Add("onclick", "javascript:window.close(); return false;");

            if (!IsPostBack)
            {
                this.SetLanguage();
            }
        }
        //public void init()
        //{
        //    string pageID = Request.QueryString[""].ToString();
        //    if (pageID == "COM")
        //    {

        //    }
        //    else if (pageID == "AdmissionRegistryEntry")
        //    {
        //        //id = getQueryString("ID");
        //        document.getElementById("txtDetails").value = dialogArguments.document.getElementById(id).innerText;
        //    }
        //    else if (pageID == "AssetItem")
        //    {
        //        id = getQueryString("ID");
        //        document.getElementById("txtDetails").value = dialogArguments.document.getElementById(id).innerText;
        //    }
        //    ///add by benson 2015-06-24  begin
        //    else if (pageID == "GeneralEventEntry")
        //    {
        //        id = getQueryString("ID");
        //        document.getElementById("txtDetails").value = dialogArguments.document.getElementById(id).innerText;
        //        alert(pageID);
        //        setReadOnly(false);
        //    }
        //}
        protected override void OnInit(EventArgs e)
        {
            base.OnInit(e);
            this.ChangeLanguage += new ChangeLanguageEventHandler(ChangeLanguage_Function);
        }

        void ChangeLanguage_Function(object sender, EventArgs e)
        {
            SetLanguage();
        }

        private void SetLanguage()
        {
            this.btnCancel.Text = this.GetLabel("COM_Cancel");
        }
    }
}
